package com.itheima.chapter06.interface1.demo5;
////JDK9接口改进private    JDK版本低
public interface Inter {
    public default void start(){
        System.out.println("start方法执行");
        //log();
        System.out.println("记录日志（模拟）");
    }
    public default void end(){
        System.out.println("enf方法执行~~~~");
        //log();
        System.out.println("记录日志（模拟）");
    }
    /*private void log(){
        System.out.println("记录日志（模拟）");
    }

    private static void check(){
        System.out.println("权限校验（模拟）");
    }*/
    public static void open(){
        //check();
        System.out.println("权限校验（模拟）");
        System.out.println("open方法执行了");
    }
    public static void close(){
        //check();
        System.out.println("权限校验（模拟）");
        System.out.println("close方法执行了");
    }
}
